package cn.outmaneuver.outman.common.domain.module;
/**
 * Copyright 2023-2023 by DongYaoMing. All Rights Reserved.
 */

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * JacksonBO
 * <p> </p>
 *
 * @author DongYaoMing
 * @version 1.0
 * @date 2023/10/25
 */
@Data
public class JacksonBO {

    private String name;
    private String hehe;


    private Map<String, Object> otherParam;

    @JsonAnyGetter
    public Map<String, Object> getOtherParam() {
        return otherParam;
    }

    @JsonAnySetter
    public void setOtherParam(String key,Object value) {
        if(this.otherParam == null){
            this.otherParam = new HashMap<>();
        }
        this.otherParam.put(key, value);
    }
}
